I think PHP validation is better in the sense that it is more fool proof. If someone has turn off a JavaScript then It can not give a error but the PHP code will give you a error.